package com.info.zhiduoduo.pay.sdk.zhaoshangbank.model.common.query;

import com.info.zhiduoduo.pay.formbean.zhaoshangbankpay.QueryTransactionCodeFormBean;
import com.info.zhiduoduo.repository.entity.pay.PaymentMerchant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class TransactionCode {

	/** 业务代码 */
	private String buscod;   //N03020:代发、N03030:代扣

	/** 账户 */
	private String accnbr;

	/** 币别 */
	private String ccynbr;

	public static List<TransactionCode> ofList(PaymentMerchant paymentMerchant){
		List<TransactionCode> list = new ArrayList<>();
		TransactionCode transactionCode = new TransactionCode()
				.setAccnbr(paymentMerchant.getBankCard())
				.setBuscod("N03020");
		list.add(transactionCode);
		return list;
	}

}
